<?php

class Home extends MY_Controller 
{
	function __construct()
	{
		parent::__construct('home');
	}
	
	function index()
	{
		$this->load->model('user/model_module');
		
		$this->load->language('user/home');
		
		$data['allowed'] = $this->model_module->get_allowed_module($this->session->userdata['user_id']);
		
		$data['heading_title'] = $this->lang->line('heading_title');
		
		$data['breadcrumbs'] = array();

   		$data['breadcrumbs'][] = array(
       		'text'      => $this->lang->line('text_home'),
			'href'      => site_url().'/user/home',
      		'separator' => false
   		);

		
		//$data['header'] = helper_load_header();
		//$data['footer'] = helper_load_footer();
		
		
		$this->load->view("user/home", $data);
	}

	function logout()
	{
		$this->model_user->logout();
	}
}
?>